package com.atguigu.decorator;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 具体的Decorator装饰者，这里就是调味品(牛奶)
 * @create: 2022-02-17 17:10
 **/
public class Milk extends Decorator{
    /**
     * 组合 被装饰者抽象类
     *
     * @param drink 被装饰者
     */
    public Milk(Drink drink) {
        super(drink);
        setDes("牛奶");
        setPrice(2.0f);
    }
}
